package com.vastcom.sigma.admin.dao;

import com.vastcom.sigma.admin.model.Dbd;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface DbdDao extends JpaRepository<Dbd,String> {

    /*@Query("select c from Cargocate c where c.pid=:cargocateid order by c.basecode")
    List<Cargocate> getCargocatesByCargocateid(@Param("cargocateid") String cargocateid);*/

    @Query("select d from Dbd d where d.clqk=:clqk order by d.ckrq desc ")
    List<Dbd> getDbdsByClqk(@Param("clqk")String clqk);

     @Query("select d from Dbd d order by d.ckrq desc ")
    List<Dbd> getDbdsByCkrq();



}
